/*
 * @Author: FengTeng
 * @Date: 2021-02-21 13:41:43
 * @LastEditTime: 2021-02-21 18:25:01
 * @LastEditors: FengTeng
 * @Description: Description
 * @FilePath: \spa-manage\src\store\userinfo.js
 */
// 用户信息
export const SET_USER_INFO = "SET_PEIMISSION_INFO";
export const CLEAR_USER_INFO = "CLEAR_PEIMISSION_INFO";

export const authInfo = {
  namespaced: true,
  state: {
    userinfo: {}
  },
  mutations: {
    [SET_USER_INFO](state, userinfo) {
      state.userinfo = { ...userinfo };
    },
    [CLEAR_USER_INFO](state) {
      state.userinfo = {};
    }
  },
  actions: {},
  getters: {}
};
